// 基于template/src/views/{{appModules}}/{{pages@DELISTVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IListViewModel } from "@/core/interface/view/model";

//  获取视图模型
function getModel(): IListViewModel {
    return {
        caption: "扩展编辑器",
        title: "扩展编辑器列表视图",
        capPSLanguageRes: "DE.LNAME.IBIZAPPEXTENDEDITOR",
        titlePSLanguageRes: "",
        showDataInfoBar: false,
        codeName: 'IBIZAPPEXTENDEDITORListView',
        uiEngineModel: [
                    {
                        name: 'newdata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    },
                    {
                        name: 'opendata',
                        triggerType: 'CUSTOM',
                        logicType: 'SYSUILOGIC',
                        eventNames: '',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: '',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: '',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'searchform',
                codeName: 'Default',
                controlType: 'SEARCHFORM',
            },
            {
                name: 'toolbar',
                codeName: 'ListViewtoolbar',
                controlType: 'TOOLBAR',
            },
            {
                name: 'list',
                codeName: 'ExtendEditorList',
                controlType: 'LIST',
            }
        ],
        ctrlParams: {
            IBIZAPPEXTENDEDITORsearchform: {},
            IBIZAPPEXTENDEDITORtoolbar: {},
            IBIZAPPEXTENDEDITORlist: {},
        },
        cssName: "portal-listview-noboxshadow",
        name: "IBIZAPPEXTENDEDITORListView",
        viewType: "DELISTVIEW",
        viewStyle: "DEFAULT",
        showCaption: false,
        isLoadDefault: true,
        entityCodeName: "IBIZAPPEXTENDEDITOR",
        keyPSAppDEField: "IBIZAPPEXTENDEDITORId",
        majorPSAppDEField: "IBIZAPPEXTENDEDITORName",
        enableQuickSearch: true,
        expandSearchForm:false,
        newData: {
            deCodeName: 'IBIZAPPEXTENDEDITOR',
            newDataViewName: 'IBIZAPPEXTENDEDITOREditView',
        },
        openData: {
            deCodeName: 'IBIZAPPEXTENDEDITOR',
            openDataViewName: 'IBIZAPPEXTENDEDITOREditView',
        },
        toolbarItems: [
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "list",
        quickSearchPlaceholder: ['扩展编辑器名称',].join(","),
        useDefaultLayout: true,
        rowActiveMode: 2,
    }
}

export const model = getModel();